<?php echo $this->Html->css('inicio'); ?>  

<?php echo $this->Form->create('persona', array('action'=>'add'));
      
      ?>
<?PHP   echo $this->Html->image('icon_pers/volver1.png');
        echo $this->Html->link('volver',array('action'=>'index'));
    ?> 
        
        <fieldset>
        
        <legend>
            <br>
        Añadir nuevo usuario<br><font size=4>(*)Campo requerido </font> </br>     
        </legend>
        
        <div id="anchoInput2">     
        <?php
      

              echo $this->Form->input('Persona.rut', array('label'=>'Rut', 'maxLength' => 8, 'type' => 'text'));
              echo $this->Form->input('Persona.dv', array('label'=>'Digito verificador del rut', 'maxLength' => 1, 'type' => 'text'));
              echo $this->Form->input('Persona.nombre', array('label'=>'Nombre persona', 'maxLength' => 20));
              echo $this->Form->input('Persona.paterno', array('label'=>'Apellido Paterno', 'maxLength' => 15));
              echo $this->Form->input('Persona.materno', array('label'=>'Apellido Materno', 'maxLength' => 15));
              echo $this->Form->input('Persona.fecha_nacimiento',
                                        array( 
                                                'label' => 'Fecha de Nacimiento',
                                                'dateFormat' => 'DMY',
                                                'timeFormat' => 'none',
                                                'minYear' => date('Y') - 80, 
                                                'maxYear' => date('Y') 
                                            )
                                     );
      
              echo $this->Form->input('Usuario.nombre', array('label'=>'Usuario', 'maxLength' => 30));
              echo $this->Form->input('Usuario.passNew', array('label'=>'Contraseña', 'maxLength' => 30));   
              echo $this->Form->input('Usuario.confirmacion', array('label'=>'Reescriba contraseña', 'maxLength' => 30));
              echo $this->Form->input('name',array('label'=>'Grupo'));  


              
              
           ?>
        </div>
    </fieldset>


    <?php
        echo $this->Form->end('Añadir persona');

        echo $this->Html->image('icon_pers/volver1.png');
        echo $this->Html->link('volver',array('action'=>'index'));
    ?>

  
